part of 'bloc.dart';

class SingleWordBasePageBlocState {
  const SingleWordBasePageBlocState({
    required this.cachedWordImagePath,
    required this.wordBaseInput,
    required this.suggestedWordImagePaths,
  });

  final String? cachedWordImagePath;
  final WordBaseInput wordBaseInput;
  final BuiltList<String> suggestedWordImagePaths;

  SingleWordBasePageBlocState copyWith({
    String? Function()? cachedWordImagePath,
    WordBaseInput Function()? wordBaseInput,
    BuiltList<String> Function()? suggestedWordImagePaths,
  }) {
    return SingleWordBasePageBlocState(
      cachedWordImagePath:
          cachedWordImagePath == null ? this.cachedWordImagePath : cachedWordImagePath(),
      wordBaseInput: wordBaseInput == null ? this.wordBaseInput : wordBaseInput(),
      suggestedWordImagePaths: suggestedWordImagePaths == null
          ? this.suggestedWordImagePaths
          : suggestedWordImagePaths(),
    );
  }
}
